home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / BORL_TIP / TI1000 / TI1747.ASC < prev    next >
Text File  |  1993-12-21  |  8KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Pascal                                NUMBER  :  1747
  9.   VERSION  :  7.0
  10.        OS  :  DOS/Win
  11.      DATE  :  December 21, 1993                        PAGE  :  1/4
  12.  
  13.     TITLE  :  Printing in the Pascal IDE
  14.  
  15.  
  16.  
  17.  
  18.   How to print from the Pascal Integrated Development Environment
  19.   ===============================================================
  20.  
  21.           All printing is handled from the printer filter
  22.   (prnfltr.exe) executable that is located in the bin directory.
  23.   The source code for the prnfltr was included in both the Turbo
  24.   Pascal 7.0 and the Borland Pascal 7.0 packages, although in
  25.   different places.  PRNFLTR.PAS if found in either the \TP\BIN
  26.   directory or in the \BP\EXAMPLES\UTILS directory.  (Also look
  27.   at the file LISTER.PAS in the \BP\EXAMPLES\DOS or
  28.   \TP\EXAMPLES.  It is an excellent alternative to the standard
  29.   printing options available in Borland Pascal.)  From this file
  30.   we can see the various printing options for PRNFLTR.  The
  31.   options can be changed from under File | Printer Setup |
  32.   Command Line.  The $NOSWAP does not change.
  33.  
  34.           For example, if changing from /EPSON support to /HP
  35.   support, the command line should change from this:
  36.  
  37.           $NOSWAP /EPSON
  38.  
  39.   To this :
  40.  
  41.           $NOSWAP /HP
  42.  
  43.           Once the changes have been made to the command line for
  44.   the PRNFLTR, be sure to save the current configuration (this
  45.   will keep you from having to change the configuration every
  46.   time you wish to print). The current configuration can be saved
  47.   by choosing Option | Save menu option.
  48.  
  49.  
  50.   OPTIONS FOR PRNFLTR
  51.   ===================
  52.  
  53.   {************************************************}
  54.   {                                                }
  55.   {   Printer output filter example                }
  56.   {   Copyright (c) 1992 by Borland International  }
  57.   {                                                }
  58.   {************************************************}
  59.  
  60.     The following printers are supported:
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Pascal                                NUMBER  :  1747
  75.   VERSION  :  7.0
  76.        OS  :  DOS/Win
  77.      DATE  :  December 21, 1993                        PAGE  :  2/4
  78.  
  79.     TITLE  :  Printing in the Pascal IDE
  80.  
  81.  
  82.  
  83.  
  84.        EPSON and compatibles
  85.  
  86.     HP LaserJet II, III, IIP, IID, IIID, IIISi and compatibles
  87.          (Italics are available on IIIx, IIP)
  88.  
  89.     ADOBE(R) PostScript(R)
  90.  
  91.     ASCII (simply strips the highlight codes
  92.        before sending to Lst)
  93.  
  94.     Command line options:
  95.  
  96.        /EPSON   - Output EPSON printer codes
  97.        /HP      - Output HP LaserJet codes
  98.        /PS      - Output PostScript
  99.        /ASCII   - Strip highlight codes (Default)
  100.  
  101.        /Lxx     - Lines per page (Default 55)
  102.        /Txx     - Tabsize (Default 8)
  103.        /O[file] - Output to file or device (Default LPT1)
  104.  
  105.  
  106.   DEFAULT LPT1
  107.   ============
  108.  
  109.           The default port for printing is lpt1.  If you do not
  110.   have your printer set up on lpt1 the way to change the default
  111.   is by using the /O[file] option, replacing [file] with whatever
  112.   port the printer is on (such as lpt2).
  113.           Example (printing to an HP from lpt2):
  114.           $NOSWAP /HP /Olpt2
  115.  
  116.  
  117.   PRINTING PROGRAM OUTPUT
  118.   =======================
  119.  
  120.           If you want to print the output of your program (i.e.
  121.   what happens when the program is run) the document TI1255 will
  122.   describe the process.
  123.  
  124.  
  125.   "CANNOT FIND PRNFLTR"
  126.   =====================
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Pascal                                NUMBER  :  1747
  141.   VERSION  :  7.0
  142.        OS  :  DOS/Win
  143.      DATE  :  December 21, 1993                        PAGE  :  3/4
  144.  
  145.     TITLE  :  Printing in the Pascal IDE
  146.  
  147.  
  148.  
  149.  
  150.           If you are getting the error prnfltr cannot be found, it
  151.   can be solved by placing the BIN directory in the path
  152.   statement of the AUTOEXEC.BAT.
  153.  
  154.           For example, if your AUTOEXEC.BAT's path statement says
  155.   this:
  156.  
  157.   path=c:\;c:\dos;c:\windows;
  158.  
  159.           The path statement should be changed to reflect the full
  160.   path to the bin directory.
  161.  
  162.   Example:
  163.  
  164.   path=c:\;c:\dos;c:\windows;c:\bp\bin;
  165.  
  166.           Then restart your machine and try again to print.
  167.           ***
  168.   PRINTING FROM A LASER (OR A LASERJET) PRINTER
  169.   =============================================
  170.  
  171.           If the file that you would like to print is less than a
  172.   page long, sometimes it will be unable to print.  The two
  173.   possible solutions to this are as follows.
  174.  
  175.   1) Put carriage returns into the document until it is more than
  176.   a page long.
  177.  
  178.   2) Also, placing a page feed character at the end of the
  179.   document can sometimes solve the problem.
  180.  
  181.           To create a page feed character, press the control key
  182.   and while holding it down press the P key.  Keeping the control
  183.   key pressed (still), then press the L key. (Recap: control
  184.   <hold  control> P <let go of P> L <let go of L> <let go of
  185.   control>).  A symbol should appear on the screen where the
  186.   cursor was.  That is the page feed character.
  187.  
  188.  
  189.   TROUBLE SHOOTING
  190.   ================
  191.  
  192.           If you have selected the option for the type of printer
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  Pascal                                NUMBER  :  1747
  207.   VERSION  :  7.0
  208.        OS  :  DOS/Win
  209.      DATE  :  December 21, 1993                        PAGE  :  4/4
  210.  
  211.     TITLE  :  Printing in the Pascal IDE
  212.  
  213.  
  214.  
  215.  
  216.   (or compatible printer) that you have and it is still not
  217.   correctly printing, there are several possible things that
  218.   could solve the error.
  219.  
  220.           The first thing that could solve the error is to run a
  221.   "clean boot". The Technical Information document TI1561
  222.   describes what a clean boot is and how to run one. This
  223.   document and others can be gotten through the TechFax service
  224.   (automated telephone service for faxes 1-800-822-4269),
  225.   CompuServe or the Borland BBS (modem service 408-431-5096).
  226.  
  227.           Try a different option for the printer.  From /HP and
  228.   /Epson, switch to /ASCII.  Also, disable the option "Send
  229.   highlighting escape codes" (which appears just above the
  230.   command line under File | Printer Setup) as well as using the
  231.   /ASCII option could solve the problem.
  232.  
  233.           If you are still not able to print after trying several
  234.   combinations of options, it is possible that your printer is
  235.   not correctly set up to work from DOS.  (If you are on a
  236.   network it is also possible that your machine is not correctly
  237.   configured to print to the network printer.  Check with your
  238.   network administrator to see if you are correctly connected.)
  239.   To test for your printer setup, try printing straight from
  240.   DOS.  Printing from a word processor or from Windows is not
  241.   comparable because those products provide their own drivers for
  242.   printing.  It is possible to print from DOS using copy or
  243.   print.
  244.  
  245.   copy test.c lpt1  {if the printer is set up for lpt1}
  246.   print test.c      {if the printer is set up for lpt1}
  247.  
  248.           If neither of those commands works then it may be
  249.   necessary to reconfigure your printer for printing from DOS
  250.   before you will be able to print from the Pascal Integrated
  251.   Development Environment.
  252.  
  253.  
  254.   DISCLAIMER: You have the right to use this technical information
  255.   subject to the terms of the No-Nonsense License Statement that
  256.   you received with the Borland product to which this information
  257.   pertains.
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.